import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'
import Food from '../views/Food.vue'

const routes: Array<RouteRecordRaw> = [
  {
    path: '/food',
    name: 'food',
    component: Food
  },
  {
    path: '/classify',
    name: 'classify',
    component: () => import('../views/Classify.vue')
  },
  {
    path: '/cook',
    name: 'cook',
    component: () => import('../views/MyCook.vue')
  },
  {
    path: '/deilt',
    name: 'deilt',
    component: () => import('../views/Deilt.vue')
  },
  {
    path: '/map',
    name: 'map',
    component: () => import('../views/Map.vue')
  },
  {
    path: '/more',
    name: 'more',
    component: () => import('../views/More.vue')
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
